package com.xw.service.sysconfig;

import com.xw.dao.DicGroupLimitMapper;
import com.xw.model.DicGroupLimit;
import com.xw.service.common.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wangxiaoxiao
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class DicGroupLimitServiceImpl extends BaseServiceImpl<DicGroupLimit> implements DicGroupLimitService {
    @Resource
    private DicGroupLimitMapper dicGroupLimitMapper;

    @Override
    public List<DicGroupLimit> findGroupLimitByGroupId(String groupId) {
        return dicGroupLimitMapper.findGroupLimitByGroupId(groupId);
    }

    @Override
    public Integer delByGroupId(String id) {
        return dicGroupLimitMapper.delByGroupId(id);
    }

    @Override
    public List<DicGroupLimit> findListByGroupId(String id) {
        return dicGroupLimitMapper.findListByGroupId(id);
    }

    @Override
    public List<DicGroupLimit> findByLimitId(String id) {
        return dicGroupLimitMapper.findByLimitId(id);
    }
}
